package unit4.task4_2;

public class HireUser {
    //覆盖父类的属性
    private int userID;
    public String userName; //客户名字
    private  char sex;
    protected  String phone;
    private  String homePhone;
    private  String email;
    private  String qq;
    private  String cardID;
    private  String address;

    //新增属性
    private  String hirePersonNo;
    private  Date recordDate;

    public HireUser1() {
        super();
        System.out.print("这是求租客户的类型构造方法！");
    }
    //带参数的构造方法
    public  HireUser1(int userID, String userName,char sex, String phone,
                      String homePhone,String email,String qq,String cardID,
                      String address,String hirePersonNo,Date recordDate){
        //继承父类的构造方法
//        super(userID,userName, phone, sex,homePhone,email,qq,cardID,address);
        this.hirePersonNo=hirePersonNo;
        this.recordDate=recordDate;
        System.out.print("这是求租客户类构造方法！");
    }
    public String  getHirePersonNo(){
        return  hirePersonNo;
    }
    public void  setHirePersonNo(String  hirePersonNo){
        this.hirePersonNo=hirePersonNo;
    }
    public  Date getRecordDate(){
        return  recordDate;
    }
    public void setRecordDate(Date recordDate){
        this.recordDate=recordDate;
    }
    //重写显示用户姓名方法
    public  void showUserName(){
        super.showUserName();
        System.out.print("这是求租客户类显示用户的方法！");
    }

    public void setUserName() {
    }
}

}
